﻿using System;
using System.Collections.Generic;
using ExpenseSystem.Common.BaseModel;

namespace ExpenseSystem.Model
{
    [TableName("SAM_DELIVERY")]
    public class DeliveryModel:NormalModel
    {
        private string _code;
        private string _receivedate;
        private int _status;
        private long _courierid;
        private string _note;
        public virtual string Code
        {
            get { return _code; }
            set
            {
                if (_code == value)
                    return;
                _code = value;
                if (!PropertyUpdated.Contains("Code"))
                    PropertyUpdated.Add("Code");
            }
        }
        public virtual string ReceiveDate
        {
            get { return _receivedate; }
            set
            {
                if (_receivedate == value)
                    return;
                _receivedate = value;
                if (!PropertyUpdated.Contains("ReceiveDate"))
                    PropertyUpdated.Add("ReceiveDate");
            }
        }
        public virtual string Note
        {
            get { return _note; }
            set
            {
                if (_note == value)
                    return;
                _note = value;
                if (!PropertyUpdated.Contains("Note"))
                    PropertyUpdated.Add("Note");
            }
        }
        public virtual int Status
        {
            get { return _status; }
            set
            {
                if (_status == value)
                    return;
                _status = value;
                if (!PropertyUpdated.Contains("Status"))
                    PropertyUpdated.Add("Status");
            }
        }

        public virtual long CourierId
        {
            get { return _courierid; }
            set
            {
                if (_courierid == value)
                    return;
                _courierid = value;
                if (!PropertyUpdated.Contains("CourierId"))
                    PropertyUpdated.Add("CourierId");
            }
        }

    }
}
